<!--
 * @Descripttion: 
 * @Author: liZhaoBo
 * @Date: 2024-05-10 16:42:02
 * @LastEditors: liZhaoBo
 * @LastEditTime: 2024-05-10 18:43:38
-->
<template>
  <contentModel title="提交审批" @close="closed">
    <template #header-right>
      <a-space>
        <a-button @click="closed">返回</a-button>
        <a-button @click="processTracking">流程跟踪</a-button>
        <focus-on-work-btn :params="{ id: '1111' }" />
        <submit-approval-page
          title="流程提交"
          btn-title="提交流程"
          :params="{ id: '1111' }"
        />
      </a-space>
    </template>
    <container></container>
  </contentModel>
</template>

<script setup lang="ts">
  import { defineProps, onMounted, defineEmits } from 'vue';
  import focusOnWorkBtn from '@/common/components/focus-on-work-btn/index.vue';
  import submitApprovalPage from '@/common/components/submit-approval-page/index.vue';
  import contentModel from '@/common/components/content-model/index.vue';
  import container from '../detail/container.vue';

  const emit = defineEmits(['closeDrawer']);
  const props = defineProps({
    row: {
      type: Object,
      default: null,
    },
  });
  const processTracking = () => {
    console.log('111');
  };
  onMounted(() => {
    console.log('', props);
  });
  // 取消
  const closed = () => {
    emit('closeDrawer');
  };
</script>
